using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace CMS.Application.common.Interface
{
    /// <summary>
    /// 下载文件的服务接口
    /// </summary>
    public interface IFileUploadService
    {
        /// <summary>
        /// 下载的文件集合
        /// </summary>
        /// <param name="files"></param>
        /// <returns></returns>
        Task<IEnumerable<Guid>> UploadFile(IFormCollection files);
        /// <summary>
        /// 获取文件的Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         Task<FileContentResult> GetFileById(Guid id);
    }
}